<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

注意servlet 修改以后要重新启动tomcat 服务容器才能有效<br>
不配置web.xml 访问servlet<br>
<u>
<li><a href="s/ann1" target="_blank"> 访问servlet1 </a></li>
<li><a href="s/Ann2" target="_blank"> 访问AnnServlet2 (注意区分大小写)</a></li>
<br>
value = "/s/Ann3,/s/ann,/s99/,/s/77/*"<br>
<li><a href="s/ann" target="_blank"> 访问servlet3 value=(s/ann)</a></li>
<li><a href="s/Ann3" target="_blank"> 访问servlet3 value=(s/Ann3)</a></li>
<li><a href="s99/" target="_blank"> 访问servlet3 value=(/s99/)</a></li>
<li><a href="s/77/li.do" target="_blank"> 访问servlet3 value=(s/77/*)</a></li>
<li><a href="s/xxx.do" target="_blank"> 访问servlet4 value="/s/*"</a></li>
<li><a href="s/ann5" target="_blank"> 访问servlet5 value="/s/ann5" 带 初始化参数</a></li>
</u>
</body>
</html>